/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.xs_notice_user.entity;

import com.jeeplus.modules.xs_user.entity.XsUser;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import lombok.Data;

/**
 * 用户消息信息Entity
 * @author 天竹子
 * @version 2021-07-19
 */
@Data
public class XsNoticeUser extends DataEntity<XsNoticeUser> {
	
	private static final long serialVersionUID = 1L;
	@ExcelField(title="用户id", fieldType=XsUser.class, value="user.nickname", align=2, sort=1)
	private XsUser user;		// 用户id
	@ExcelField(title="消息id", align=2, sort=2)
	private String noticeId;		// 消息id
	@ExcelField(title="是否已读(1.是2.否)", align=2, sort=3)
	private Integer isRead;		// 是否已读(1.是2.否)
	
	public XsNoticeUser() {
		super();
		this.setIdType(IDTYPE_AUTO);
	}
	
	public XsNoticeUser(String id){
		super(id);
	}
}